package com.randi.system.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.randi.common.serializer.LongsToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ziye
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AuthInfo", description = "授权信息")
public class AuthMenuInfo {

    @ApiModelProperty(value = "菜单树")
    private List<AuthMenu> menuTree;

    @ApiModelProperty(value = "已授权菜单Id")
    @JsonSerialize(using = LongsToStringSerializer.class)
    private List<Long> menuIds;

}
